package com.ihr360.job.core.step.skip;

/**
 * Exception indicating that the skip limit for a particular {@link org.springframework.batch.core.Step} has
 * been exceeded.
 *
 * @author Ben Hale
 * @author Lucas Ward
 * @author Dave Syer
 */
@SuppressWarnings("serial")
public class SkipLimitExceededException extends SkipException {

    private final int skipLimit;

    public SkipLimitExceededException(int skipLimit, Throwable t) {
        super("Skip limit of '" + skipLimit + "' exceeded", t);
        this.skipLimit = skipLimit;
    }

    public int getSkipLimit() {
        return skipLimit;
    }
}
